package com.example.sentineldemo.controller;

import com.example.sentineldemo.service.AccountQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjinlong
 * @date 2022/2/15 17:38
 */
@RestController
@RequestMapping("accounts")
public class AccountController {

    @Autowired
    private AccountQueryService accountQuery;

    @GetMapping("get")
    public String get(){
        String res = accountQuery.queryAccountInfo();
        return res;
    }

    @GetMapping("get2")
    public String get2(){
        String res = accountQuery.queryAccountInfo2();
        return res;
    }

}
